package com.example.demo.controller;

/**
 * 这是一个专门用来做页面跳转的controller
 */

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Slf4j
@Controller
public class PageController {

    @RequestMapping("/showIndex")
    public String showIndex(){
        log.info("用户进入了showIndex页面");
        return "show";
    }

    @RequestMapping("/login")
    public String getLogin(){
        return "login";
    }

    @RequestMapping("/index")
    public String getIndex(){
        return "index";
    }
}
